JMMenuSelected
Dispatch a menu event to an AWT context.
OSStatus JMMenuSelected ( JMAWTContextRef context, MenuHandle hMenu, short menuItem);
context
- The AWT context that owns the menu.
hMenu
- The menu handle that was selected.
menuItem
- The item that was selected.
- function result
- A result code; see "JManager Result Codes".
DISCUSSION
You can use the Mac OS Toolbox functionGetMenuHandle
to get the appropriate value of thehMenu
parameter to pass.